package com.atguigu.visitor.demo3;

/**
 * CTO访问者
 */
public class VisitorForCto implements Visitor {

	@Override
	public void visit(StaffForManager manager) {
		System.out.println("经理: " + manager.name + ", 产品数量: " + manager.getProducts());
	}
	
	@Override
	public void visit(StaffForEngineer engineer) {
		System.out.println("工程师: " + engineer.name + ", 代码行数: " + engineer.getCodeLines());
	}
}
